/*    */ package client.anticheat;
/*    */ 
/*    */ public class CheatingOffenseEntry
/*    */ {
/*    */   private CheatingOffense offense;
/*  6 */   private int count = 0;
/*    */   private int characterid;
/*    */   private long lastOffense;
/*    */   private String param;
/* 10 */   private int dbid = -1;
/*    */ 
/*    */   
/*    */   public CheatingOffenseEntry() {}
/*    */ 
/*    */   
/*    */   public CheatingOffenseEntry(CheatingOffense offense, int characterid) {
/* 17 */     this.offense = offense;
/* 18 */     this.characterid = characterid;
/*    */   }
/*    */   
/*    */   public CheatingOffense getOffense() {
/* 22 */     return this.offense;
/*    */   }
/*    */   
/*    */   public int getCount() {
/* 26 */     return this.count;
/*    */   }
/*    */   
/*    */   public int getChrfor() {
/* 30 */     return this.characterid;
/*    */   }
/*    */   
/*    */   public void incrementCount() {
/* 34 */     this.count++;
/* 35 */     this.lastOffense = System.currentTimeMillis();
/*    */   }
/*    */   
/*    */   public boolean isExpired() {
/* 39 */     return (this.lastOffense < System.currentTimeMillis() - this.offense.getValidityDuration());
/*    */   }
/*    */   
/*    */   public int getPoints() {
/* 43 */     return this.count * this.offense.getPoints();
/*    */   }
/*    */   
/*    */   public String getParam() {
/* 47 */     return this.param;
/*    */   }
/*    */   
/*    */   public void setParam(String param) {
/* 51 */     this.param = param;
/*    */   }
/*    */   
/*    */   public long getLastOffenseTime() {
/* 55 */     return this.lastOffense;
/*    */   }
/*    */   
/*    */   public int getDbId() {
/* 59 */     return this.dbid;
/*    */   }
/*    */   
/*    */   public void setDbId(int dbid) {
/* 63 */     this.dbid = dbid;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\client\anticheat\CheatingOffenseEntry.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */